﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MyMainSite.Models.Admin.NewProjectBuildModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>New Project Build</h2>

	<% if(!String.IsNullOrWhiteSpace(this.Model.ErrorMessage))
	{ %>
	<div class="ui-widget">
		<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
			<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
			<strong>Alert:</strong> <%= this.Model.ErrorMessage %></p>
		</div>
	</div>
	<% } %>

	<form action="/admin/newprojectbuild" method="post" enctype="multipart/form-data">

		<%: Html.HiddenFor(b => b.ProjectId) %>

		<p>
			Name *: <input id="textName" name="textName" />
		</p>

		<p>
			File *: <input type="file" name="file" id="file" />
		</p>

		<p>
			Version *: <input id="textVersion" name="textVersion" />
		</p>
 
		<input type="submit" name="submit" value="Submit" />
	</form>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="contentHeader" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="contentLeftMenu" runat="server">
</asp:Content>
